package com.lsj.spring.model;

import com.lsj.spring.anno.Save;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Lsj
 * @version 1.0
 * @date 2021/6/24 19:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String nickname;
    private String password;
    private Integer type;
    /**
     * 创建人
     */
    public String createBy;
    public String name;

    @Save(name = "用户表测试")
    public void insert(){
        System.out.println("插入操作");
    }

    public User(Integer id, String username) {
        this.id = id;
        this.username = username;
    }
}
